using Kernel.EF.Demo.Sqlite;
using Microsoft.AspNetCore.OData.Query;
using Microsoft.AspNetCore.OData.Routing.Controllers;

namespace ODataRoutingSample.Controllers
{
    public class WhiteListsController : ODataController/*ControllerBase*/
    {
        private KernelAPIContext _context = new KernelAPIContext();

        [HttpGet]
        [EnableQuery]
        public IActionResult Get(CancellationToken token)
        {
            return Ok(_context.WhiteLists);
        }

    }
}
